package com.leoandroid.tool.toolsbox.largeread;

import android.app.Application;

import com.tencent.mmkv.MMKV;
import com.leoandroid.tool.toolsbox.largeread.utils.FlashlightUtils;
import com.leoandroid.tool.toolsbox.utils.SPreference;

public class LargeReadApp extends Application {

    private static LargeReadApp app;

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        FlashlightUtils.init(this);
        MMKV.initialize(this);
        SPreference.Companion.setContext(this);
    }

    public static LargeReadApp getInstance() {
        return app;
    }
}
